<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
                <title></title>
                <link rel="stylesheet" href="http://localhost/shopFrame/Application/ADMIN/View/Public/Css/bootstrap.min.css" />
                <link rel="stylesheet" href="http://localhost/shopFrame/Application/ADMIN/View/Public/Css/common.css" />
                <style type="text/css">
                        body{
                                margin-bottom: 100px;
                                margin-top:10px;
                                font-family: 微软雅黑;
                        }
                </style>
        </head>
        <body>
                <div class="container-fluid">
                        <div class="row-fluid">
                                <div class="span12">
                                        <table class="table table-bordered table-hover">
                                                <tr>
                                                        <th>订单号</th>
                                                        <th>下单人</th>
                                                        <th>总价</th>
                                                        <th>下单时间</th>
                                                        <th>订单状态</th>
                                                        <th>所属用户</th>
                                                        <th>操作</th>
                                                </tr>
                                                <?php if(is_array($allOrder)){?><?php  foreach($allOrder as $key=>$v){ ?>
                                                        <tr class="info">
                                                                <td><?php echo $v['onumber'];?></td>
                                                                <td>
                                                                        <?php echo $v['receiver'];?>
                                                                </td>
                                                                <td>
                                                                        ￥<?php echo $v['totalprice'];?>
                                                                </td>
                                                                <td><?php echo hd_date($v['time'],'Y-m-d H:i:s');?></td>
                                                                <td><?php echo $v['orderstatu'];?></td>
                                                                <td><?php echo $v['user_uid'];?></td>
                                                                <td>
                                                                        <?php if($v['orderstatu'] == "已发货"){?>
                                                                                 <a href="javascript:;" class="btn btn-success"><i class="icon-heart icon-white"></i>&nbsp;已发货</a>
                                                                        <?php }?>
                                                                        <?php if($v['orderstatu'] == '待发货'){?>
                                                                                <a href="<?php echo U('Order/send',array('olid'=>$v['olid']));?>" class="btn btn-danger"><i class="icon-ok-circle icon-white"></i>&nbsp;&nbsp;&nbsp;发&nbsp;&nbsp;货</a>
                                                                       <?php }?>
                                                                        <?php if($v['orderstatu'] == "未付款"){?>
                                                                                 <a href="javascript:;" class="btn btn-primary"><i class="icon-shopping-cart icon-white"></i>&nbsp;未付款</a>
                                                                        <?php }?>
                                                                        <?php if($v['orderstatu'] == "已完成"){?>
                                                                                 <a href="javascript:;" class="btn btn-warning"><i class="icon-ok icon-white"></i>&nbsp;已完成</a>
                                                                        <?php }?>
                                                                </td>
                                                        </tr>
                                                <?php }}?>
                                        </table>

                                </div>
                        </div>
                </div>
        </body>
</html>